﻿#ifndef INFOCONFIRM_H
#define INFOCONFIRM_H

#include <QWidget>
#include "qmessagebox.h"
namespace Ui {
class infoConfirm;
}

class infoConfirm : public QWidget
{
    Q_OBJECT

public:
    explicit infoConfirm(QWidget *parent = nullptr);

    //操作是否成功信息
    void alertInfo(bool status){
        if(status){
            QMessageBox::information(this,"提示","操作成功！");
        }else {
            QMessageBox::critical(this,"提示","操作失败");
        }
    }

    void alertInfo( QString string){
        QMessageBox::critical(this,"提示",string);
    }
    ~infoConfirm();

private slots:
    void on_pushButton_2_clicked();

    void on_pushButton_clicked();



private:
Ui::infoConfirm *ui;
};

#endif // INFOCONFIRM_H
